﻿<Window x:Name="mainWindow" x:Class="ComTempV2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="612" Icon="feuer.ico" MinWidth="610" MinHeight="350" MaxWidth="610" MaxHeight="350" WindowStyle="ToolWindow" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <Grid Margin="0,0,2,0">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="174*"/>
            <ColumnDefinition Width="127*"/>


        </Grid.ColumnDefinitions>
        <Button x:Name="startButton" Content="Start" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_1"/>
        <Button Content="Ende" HorizontalAlignment="Left" Margin="90,10,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_3"/>
        <Label Content="Verbindung:" HorizontalAlignment="Left" Margin="175,10,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.789,0.462" Height="22" Padding="0,3,0,0"/>
        <Label x:Name="connection" Content="Disconnected&#xD;&#xA;" HorizontalAlignment="Left" Margin="250,10,0,0" VerticalAlignment="Top" Height="22" Background="#00000000" Foreground="Red" FontWeight="Bold" Padding="0,3,0,0" Width="75"/>
        <Label x:Name="TempLabel" Content="0°C" HorizontalAlignment="Left" Margin="10,110,0,94" VerticalAlignment="Center" Height="118" Width="329" FontWeight="Bold" FontSize="72" HorizontalContentAlignment="Center"/>
        <ProgressBar x:Name="progessBar1" HorizontalAlignment="Left" Height="46" Margin="11,257,0,0" VerticalAlignment="Top" Width="329">
            <ProgressBar.Background>
                <LinearGradientBrush EndPoint="1,0" StartPoint="0,0">
                    <LinearGradientBrush.RelativeTransform>
                        <TransformGroup>
                            <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                            <SkewTransform CenterY="0.5" CenterX="0.5"/>
                            <RotateTransform CenterY="0.5" CenterX="0.5"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </LinearGradientBrush.RelativeTransform>
                    <GradientStop Color="#FF00F2FD"/>
                    <GradientStop Color="#FFDE500D" Offset="0.683"/>
                    <GradientStop Color="#FFBB0505" Offset="0.905"/>
                    <GradientStop Color="#FF008BFF" Offset="0.219"/>
                    <GradientStop Color="#FFF99300" Offset="0.508"/>
                </LinearGradientBrush>
            </ProgressBar.Background>
        </ProgressBar>
        <Label Content="0°C" HorizontalAlignment="Left" Margin="11,231,0,0" VerticalAlignment="Top"/>
        <Label Content="100°C" HorizontalAlignment="Left" Margin="299,231,0,0" VerticalAlignment="Top"/>
        <Button Content="Beenden" HorizontalAlignment="Left" Margin="169,10,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_2" Grid.Column="1"/>
        <TextBlock x:Name="TextBlock1" HorizontalAlignment="Left" Margin="7,40,0,0" TextWrapping="Wrap" Text="Die Temperatur beträgt -°C" VerticalAlignment="Top" Height="273" Width="237" Grid.Column="1"/>
        <Label Content="Serial Output Console:" HorizontalAlignment="Left" Margin="2,10,0,0" VerticalAlignment="Top" Grid.Column="1"/>
        <GridSplitter HorizontalAlignment="Left" Height="300" Margin="345,10,0,0" VerticalAlignment="Top" Width="5" Grid.ColumnSpan="2"/>
        <ComboBox x:Name="comboBox" HorizontalAlignment="Left" Margin="10,40,0,0" VerticalAlignment="Top" Width="155" SelectionChanged="ComboBox_SelectionChanged_1" IsReadOnly="True" SelectedIndex="0">
            <ComboBoxItem Content="COM1"/>
            <ComboBoxItem Content="COM2"/>
            <ComboBoxItem Content="COM3"/>
            <ComboBoxItem Content="COM4"/>
        </ComboBox>
        <TextBlock x:Name="TextBlock2" HorizontalAlignment="Left" Margin="7,69,0,0" TextWrapping="Wrap" Text="Der Wiederstand beträgt -Ohm" VerticalAlignment="Top" Height="23" Width="237" Grid.Column="1"/>
        <TextBlock x:Name="intdatatext" HorizontalAlignment="Left" Margin="7,92,0,0" TextWrapping="Wrap" Text="IntData" VerticalAlignment="Top" Height="23" Width="237" Grid.Column="1"/>

    </Grid>
</Window>